package net.lesscoding.shop.mq;

import org.apache.rocketmq.common.message.MessageExt;
import org.apache.rocketmq.spring.annotation.MessageModel;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * @author eleven
 * @date 2024/6/14 12:54
 * @apiNote
 */
@Component
@RocketMQMessageListener(consumerGroup = "${mq.order.consumer.group.name}",
        topic = "${mq.order.topic}",
        // 广播模式
        messageModel = MessageModel.BROADCASTING)
public class CancelMqListener implements RocketMQListener<MessageExt> {
    @Override
    public void onMessage(MessageExt messageExt) {

    }
}
